﻿using System;
namespace EnterpriseFund.Model
{
    /// <summary>
    /// AllowanceApplicationForm:实体类(属性说明自动提取数据库字段的描述信息)
    /// </summary>
    [Serializable]
    public partial class AllowanceApplicationForm
    {
        public AllowanceApplicationForm()
        {
            FAuditAmount = 0M;
        }
        #region Model
        /// <summary>
        /// 
        /// </summary>
        public string FApplicationFormID
        {
            set;
            get;
        }
        /// <summary>
        /// 受理来源：
        ///填写相关的主表名，主要为资金汇总文件表，其他补助
        /// </summary>
        public string FSource
        {
            set;
            get;
        }
        /// <summary>
        /// 受理来源电子档案号
        ///填写对应来源的电子档案号
        /// </summary>
        public string FSourceNo
        {
            set;
            get;
        }
        /// <summary>
        /// 状态：
        ///0  -  申请预受理
        ///1  -  申请受理
        ///2  -  申请审理
        ///3  -  申请复核
        /// </summary>
        public string FStatus
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal NSRDZDAH
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public string NSRMC
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public string YHZK
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public string KHYH
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public string FFileNo
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public string FNote
        {
            set;
            get;
        }
        /// <summary>
        /// 是否退回标志
        ///Y  - 是
        ///N - 否
        /// </summary>
        public string FIsReturn
        {
            set;
            get;
        }

        public string FIsReturnStr
        {
            get
            {
                switch (FIsReturn)
                {
                    case "Y":
                        return "是";
                    case "N":
                        return "否";
                }

                return "";
            }
        }
        /// <summary>
        /// 资金性质编号
        /// </summary>
        public string FFinancePropNo
        {
            set;
            get;
        }
        /// <summary>
        /// 年度
        /// </summary>
        public decimal FYear
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal FApplyAmount
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public decimal FAuditAmount
        {
            set;
            get;
        }

        /// <summary>
        /// 
        /// </summary>
        public string FApplyAmountDX
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public string FAuditAmountDX
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public string FApplyName
        {
            set;
            get;
        }
        /// <summary>
        /// 
        /// </summary>
        public DateTime? FApplyDate
        {
            set;
            get;
        }
        /// <summary>
        /// 公司编码
        /// </summary>
        public string FEntityNo
        {
            set;
            get;
        }
        /// <summary>
        /// 录入员工编号
        /// </summary>
        public string FInsEmpNo
        {
            set;
            get;
        }
        /// <summary>
        /// 录入部门编号
        /// </summary>
        public string FInsDeptNo
        {
            set;
            get;
        }
        /// <summary>
        /// 录入时间
        /// </summary>
        public DateTime FInsDate
        {
            set;
            get;
        }
        /// <summary>
        /// 录入IP
        /// </summary>
        public string FInsIP
        {
            set;
            get;
        }
        /// <summary>
        /// 修改员工编号
        /// </summary>
        public string FUpdEmplNo
        {
            set;
            get;
        }
        /// <summary>
        /// 修改部门编号
        /// </summary>
        public string FUpdDeptNo
        {
            set;
            get;
        }
        /// <summary>
        /// 修改时间
        /// </summary>
        public DateTime? FUpdDate
        {
            set;
            get;
        }
        /// <summary>
        /// 修改IP
        /// </summary>
        public string FUpdIP
        {
            set;
            get;
        }

        /// <summary>
        /// 修改时间
        /// </summary>
        public string FDDBRMC
        {
            set;
            get;
        }
        /// <summary>
        /// 修改IP
        /// </summary>
        public string FFinancePropName
        {
            set;
            get;
        }

        public string FInsEmpName
        {
            set;
            get;
        }
        public string FStatusStr
        {
            get
            {
                if (FIsReturn == "N")
                {
                switch (FStatus)
                {
                    case "0":

                        return "申请受理";
                    case "1":
                        return "申请审核";
                    case "2":
                     return "申请复核";

                }
                }
                else
                {
                    return "退回";
                }

                return "";

            }
        }
        public string FUpdEmplName
        {
            get;
            set;
        }
        public string Famount
        {
            get;
            set;
        }
        public string FamountStr
        {
            get
            {
                if (Famount == "" || Famount == null)
                    return "0.00";
                else
                    return decimal.Parse(Famount).ToString("f2");
            }
        }
        public string FamountLeave
        {

            set;
            get;
        }
        public string FamountLeaveStr
        {
            get
            {
                if (FamountLeave == "" || FamountLeave == null)
                    return FAuditAmount.ToString("f2");
                else
                    return decimal.Parse(FamountLeave).ToString("f2");
            }
        }
        #endregion Model

    }
}

